package cn.lzm.fault.retry;

import cn.lizemin.entity.RpcResponse;

import java.util.concurrent.Callable;

/**
 * @author lzm
 * @Date 2024/11/8
 * @description 重试策略
 */
public interface RetryStrategy {

    /**
     * 重试
     *
     * @param callable
     * @return
     * @throws Exception
     */
    RpcResponse doRetry(Callable<RpcResponse> callable) throws Exception;
}
